import Axios from 'axios';
export default {
  install(Vue, options) {
    Vue.prototype.getLines = function() {
      let config = {
        headers: {
          'Content-Type': 'application/json'
        }
      };
      return new Promise((resolve, reject) => {
        Axios.post('/api/getLines', config)
          .then(res => {
            resolve(res.data.data);
          })
          .catch(res => {
            reject(res);
          });
      });
    };
  }
};
